







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Finds the index of the last item in a list equal to a given item.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static int LastIndexOf<T>( IList<T> list, T item ) |
Visual Basic (Declaration) |
---|
Public Shared Function LastIndexOf(Of T) ( _ list As IList(Of T), _ item As T _ ) As Integer |
Visual C++ |
---|
public: generic<typename T> static int LastIndexOf ( IList<T>^ list, T item ) |
Parameters
- list
- IList<(Of <T>)>
The list to search.
- item
- T
The item to search for.
Return Value
The index of the last item equal to item. -1 if no such item exists in the list.
Type Parameters
- T
Remarks
The default sense of equality for T is used, as defined by T's
implementation of IComparable<T>.Equals or object.Equals.
See Also
Algorithms Class
Wintellect.PowerCollections Namespace